package classconverstation.cscl.ist.psu.edu.client.messengers;

import java.io.Serializable;

/*
 * @Honglu Du
 * This class store the information of a user
 */
public class User implements Serializable{
	
	private static final long serialVersionUID = 2845184925024574364L;
	String uid;
	String fname;
	String lname;
	String psuid;
	// 0: TA or teacher, 1: students
	int utype;
	
	public User(){

	}
	public User(String id, String f, String l, String pid, int type){
		this.uid = id;
		this.fname = f;
		this.lname = l;
		this.psuid = pid;
		this.utype = type;
	}
	
	public User(String id, String f, String l, String pid){
		this.uid = id;
		this.fname = f;
		this.lname = l;
		this.psuid = pid;
		utype = 1;
	}
	
	
	
	public String getUid(){
		return this.uid;
	}
	
	public String getFName(){
		return this.fname;
	}
	
	public String getLName(){
		return this.lname;
	}
	
	public String getPSUID(){
		return this.psuid;
	}
	
	public int getUserType(){
		return this.utype;
	}
	
	public String getFullName(){
		return this.fname +" "+ this.lname;
	}

}
